<?php
include 'sdk.php';
$partner = intval('2147483647');//合作ID
$RSAkey = '-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt7412/7nGvBAXka5ehZS
a8U/7TqzAw7gviNRT6kl/pfEUSlFSXtBVs1xsqu8FSEOW/dlYBKI6FQ8rv3oTv8n
O2oQ/jQZ3wej+48rZuQTq5gwQ1qU5DUAoTXC9/aFpfPu3yrvnz6J+uv1oWhtkpjN
XXXXXXXXXXXXXXXX
CrwecBWBj//juMlljxmj9enAI1N5Ag97hFnkLvI6FlGQw1IHOFHHYQ/KQPwkSATB
C9XAWwYx+3gPeZUnzbKP1K07YpthHIJdA+TIJpgIDf17gzFblTdWENR8RwpEqTNL
TwIDAQAB
-----END PUBLIC KEY-----';
$money= '0.01';
$return_url = 'https://openapi.mcpe.cc/test/return_url.php';
$notify_url = 'https://openapi.mcpe.cc/test/notify_url.php';
$Fpay = new Fpay($partner,$RSAkey);
$Fpay->to_pay_by_user($money,$return_url,$notify_url,'alipay_by_user');
